package cn.tedu.spring.life;


import org.springframework.context.annotation.AnnotationConfigApplicationContext;

import java.sql.SQLOutput;

public class TestDBConnect {
    public static void main(String[] args) {
        AnnotationConfigApplicationContext ac =
                new AnnotationConfigApplicationContext
                        ("cn.tedu.spring.life");
        DBConnect dbConnect = ac.getBean(DBConnect.class);
        System.out.println("4-开发者使用阶段;");
        //手动关闭IoC容器;
        ac.close();
    }
}

